import http from '@/utils/http.js'
const prefix = '/home'
export default {
	
	/**
	/* 微信小程序的给 wxlogin 方法后调用的服务端方法
	*/
	login(code,parentId){
		if(parentId){
			return http.post(`${prefix}/login?code=${code}&parentId=${parentId}`)
		}else{
			return http.post(`${prefix}/login?code=${code}`)
		}		
	},
	pay(openId){
		return http.post(`${prefix}/kxpay?openId=${openId}`)
	}
	
}